import logging

def set_log(filename,filemode):
    log=logging.basicConfig(level=logging.INFO,format='%(levelname)s',filename=filename,filemode=filemode)
    return log